import request from '@/utils/request.js'

export function getFilePage(params) {
    return request.get('/file/', {params});
}
export function getFileById(id) {
    return request.get('/file/'+id);
}
export function createFile(data) {
    return request.post('/file/create', data);
}
export function deleteFileById(id) {
    return request.post('/file/delete/'+id);
}
export function updateFile(data) {
    return request.post('/file/update', data);
}